package com.bingxue.edu.management.system.model.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * 创建或修改文件信息
 *
 * @author panbo
 * @since 2024/07/24 08:57
 */
@Data
@Schema(description = "创建或修改文件信息")
public class FileReq {

    @Schema(description = "名称")
    @NotBlank(message = "名称不能为空")
    @Length(max = 64, message = "名称长度不能超过 {max} 个字符")
    private String name;

    @Schema(description = "存储ID")
    @NotBlank(message = "存储ID不能为空")
    @Length(max = 32, message = "存储ID长度不能超过 {max} 个字符")
    private String storageId;
}
